var Dog = require("./dog");

var dog = new Dog("taidi", 10);

dog.on("bark",function(){
    console.log(this.name + "barked, energy left" + this.energy)
})

// var dog = new Dog("taidi", 10);